<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>收藏的商家</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/style_zj.css">
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../fonts/iconfont.css">
</head>
<body>
<!--<div id="header_01_html">
    <iframe id="header_01" src="head_01.html" frameborder="0"></iframe>
</div>-->
<div class="content-box">
    <!--<div id="left_tab_html">
        <iframe id="left_tab" src="left_tab.html?x=3&y=1" frameborder="0"></iframe>
    </div>-->
    <div class=" right-box layui-form" id="vue-box" v-cloak>
        <div class="content-admin">

            <div class="title-toggle">
                <div class="item active">添加客服</div>
                <div class="item  js-showTitle"><a href="banner_admin.html">轮播设置</a></div>
                <span class="btn-sty11 fr" onClick="javascript :history.back(-1);">返回</span>
            </div>
            <div class="input-box1 sign-info" style="padding-left: 0;">
                <div class="li clearfix">
                    <div class="left-k"><span class="col-ff4">*</span><span class="text-sty1">客服昵称</span></div>
                    <div class="right-v">
                        <input type="text" class="layui-input js-name">
                        <span class=""></span>
                    </div>
                </div>
                <div class="li clearfix">
                    <div class="left-k"><span class="col-ff4">*</span><span class="text-sty1">客服QQ</span></div>
                    <div class="right-v">
                        <input type="text" class="layui-input js-qq">
                        <span class=""></span>
                    </div>
                </div>


                <div class="li clearfix">
                    <div class="left-k"><span class="col-ff4"></span><span class="text-sty1"></span></div>
                    <div class="detail-pic-text"><span class=""><span class="release-btn1 js-add">添加客服</span></span><span style="top: 1px;" class=""></span></div>
                </div>


            </div>

        </div>
    </div>
</div>

<!--<div>
    <iframe src="footer-record.html" style="width: 100%;border: none;height:60px;"></iframe>
</div>-->
<script src="../js/config.js"></script>

<script>

    var app = new Vue({
        el: '#vue-box',
        data:{
            imgBaseUrl: imgBaseUrl,
        },
        mounted:function(){
        },
        methods:{

        }
    })
    $('.js-add').click(function(){   //新增客服
        if($('.js-name').val() && $('.js-qq').val()){
            get_ajax("/stoteAirlines/addInfo", {name:$('.js-name').val(),qq:$('.js-qq').val()}, function (data) {
                console.log(data);
                layer.msg('新增成功！');
                addNewBlack();
            })
        }else{
            layer.msg('请填写姓名和qq号！');
        }

    })

</script>
</body>
</html>